encode{
  final ChannelBuffer buffer=(ChannelBuffer)msg;
  io.netty.buffer.ChannelBuffer.readerIndex
    io.netty.buffer.ChannelBuffer.readableBytes
    io.netty.buffer.ChannelBuffer.setInt
  return buffer;
}
setHandshaked{ }
